package com.douhao.personal.mapper;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public interface BaseMapper<T, PK extends Serializable> {

    int insert(T bean);

    int update(T bean);

    int delete(PK key);

    T select(PK key);

    List<T> list(Map<String, Object> map);

    long count(Map<String, Object> map);
}
